<?php
/**
* phpCan - http://idc.anavallasuiza.com/
*
* phpCan is released under the GNU Affero GPL version 3
*
* More information at license.txt
*/

defined('ANS') or die();

$config['routes'] = array(

	//Default
	'*' => array(
		'templates' => array(
			'head' => 'head.php',
			'css' => array(
				'common|csans-1.0/csans.css',
				'common|jquery.colorbox-1.3.16/colorbox.css',
				'jquery-ui/jquery-ui.css',
				'http://fonts.googleapis.com/css?family=Arimo:regular,bold',
				'http://fonts.googleapis.com/css?family=Droid+Sans+Mono',
				'$styles.css'
			),
			'js' => array(
				'common|jquery-1.5.2/jquery.min.js',
				'common|jquery.ui-1.8.11/jquery.ui.min.js',
				'common|jquery.colorbox-1.3.16/jquery.colorbox.min.js',
				'common|jquery.floatheader-1.4.0/jquery.floatheader.min.js',
				'common|jquery.ansforms-1.0/jquery.ansforms.js',
				'scripts.js'
			)
		),
		'templates #html' => array('base' => 'base_html.php'),
		'templates #iframe' => array('base' => 'base_iframe.php'),
		'data' => array('login.php', 'menu-tables.php')
	),

	'login' => array(
		'templates' => array('base' => 'base_login.php')
	),

	'index' => array(
		'templates' => array(
			'content' => 'content_main.php',
			'js' => 'common|jquery.quicksearch/jquery.quicksearch.js',
			'css' => '$styles-main.css'
		)
	),

	'undefined' => array(
		'templates' => array('base' => '')
	),

	'$connection/$table/list' => array(
		'templates' => array(
			'content' => 'content_list.php',
			'css' => '$styles-list.css',
			'js' => 'scripts-list.js'
		),
		'data' => 'list.php'
	),

	'$connection/$table/new' => array(
		'templates' => array(
			'content' => 'content_edit.php',
			'css' => '$styles-edit.css',
			'js' => 'scripts-edit.js'
		),
		'data' => 'new.php'
	),

	'$connection/$table/$id/edit' => array(
		'templates' => array(
			'content' => 'content_edit.php',
			'css' => '$styles-edit.css',
			'js' => 'scripts-edit.js'
		),
		'data' => 'edit.php'
	),

	'$connection/$table/related_with/$relation/$relation_id:int' => array(
		'templates' => array(
			'content' => 'content_relations.php',
			'css' => '$styles-list.css',
		),
		'data' => 'relations.php'
	),

	'utils/update-db' => array(
		'templates' => array(
			'content' => 'content_update-db.php',
			'css' => '$styles-list.css',
			'js' => 'scripts-update-db.js'
		),
		'data' => 'update-db.php'
	),

	'utils/gettext' => array(
		'templates' => array('content' => 'content_gettext.php'),
		'data' => 'gettext.php'
	),

	'utils/svn-update' => array(
		'templates' => array('content' => 'content_svn-update.php')
	)
);
?>
